filter

inline fun filter(predicate: (L) -> Boolean): Either<L, R>?

Returns the same Left if the predicate is satisfied for the value. Otherwise returns null.

Return

The same Left if the predicate is satisfied for the value. Otherwise returns null.

Parameters

predicate

Predicate function.